<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    {% block head %}
    <title>
      {% block title %}西门外 {% endblock %}
    </title>
    {% block meta %} {% include "base/meta.html" %} {% endblock %}
    <!--  meta end -->

    {% endblock %}
    <!--  head end -->
    
  </head>
  <body>
    <div id="wrapper">

      <div id="header">
        <div id="ssform" name="ssform" method="get" >

          <a href="http://www.ximenwai.com" title="西门外">
            <img src="http://xmw-static-1.appspot.com/favicon.ico" alt="西门外" class="logo"/>
          </a>
          <div id="nav">
            <a class={% block first_tab %} ""{% endblock %}href="/">
              <span>
                首页
              </span>
            </a>

<!-- 
            <a  href="/my_ximenwai">
              <span>
                我的西门外
              </span>
            </a>
-->

            <a  class={% block my_xmw_tab %} ""{% endblock %} href="/mine/my_tianya_post">
              <span>
                我的西门外
              </span>
            </a>
<!-- 
            <a  href="/book/">
              <span>
                订阅
              </span>
            </a>
 -->
 			<a  class={% block about_tab %} ""{% endblock %} href="/tour">
              <span>
                关于西门外
              </span>
            </a>
          </div>
          <div class="clear">
            &nbsp;
          </div>


          {% include "bar.html" %}
        </div>
        <!-- form -->
      </div>
      <div id="content">

        <h1>
          {% block content_title %} content_title {% endblock %}
          <!--  content_title end-->
        </h1>

        <div class="grid-16-8 clearfix">
          {% block body %}
          <div class="article">

            {% block article %} article {% endblock %}
            <!--  article end-->

          </div>
          <div class="aside">
          <!--
          	hide the aside tempoary 
            {% block aside %} {% include "aside.html" %} {% endblock %}
            -->
            <!--  end aside -->
          </div>

        </div>
        {% endblock %}
        <!-- 	content body end -->
      </div>
      <div id="footer">
        {% include "footer.html"%}
      </div>
    </div>

  </body>
</html>
